programming4us
           
 
 
Sharepoint

SharePoint 2010 : Site Administration - Migrating a site collection

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
7/17/2013 3:54:25 AM

Moving a site collection to another content database is a task that is incumbent upon a SharePoint Farm Administrator. There are several reasons why this may need to be done:

  • We may need to combine several site collections under one content database

  • The site collection is getting too large and must be moved to new content database

This is going to be shown via PowerShell. The strength of this method is that it facilitates the scripting of tasks that are considered repetitive. In this way, administrators can create scripts to move more than one site collection at a time.

Getting ready

User must have access to one of the servers running PowerShell 2.0 and should be a member of the WSS_ADMIN_WPG&; on the local computer. User must also be a member of the db_owner database role&; and the SharePoint_Shell_Access role&; in the following databases:

  • Source content database

  • Administration content database

  • Destination content database

  • Configuration database

There must be an existing site collection that is going to be moved. In addition, a destination content database must be set up within a web application, prior to performing this recipe.

For this recipe to work, the content database and the site collection must be on the same SQL server and in the same web application.

How to do it...

  1. Click on the Start button on the web front-end.

  2. Under All Programs, navigate to the Microsoft SharePoint 2010 Products folder.

  3. Right-click SharePoint 2010 Management Shell and select the Run as Administrator option. The PowerShell console will appear.

  4. Type in the following command into the console window:

    Move-SPSite -identity <site collection URL> -destinationdatabase <content database>
    
    
    					  

    Press the Enter key.

  5. A prompt will appear asking for confirmation. It will look similar to the following:&;

    Type in Y and press the Enter key.

  6. Perform an iisreset operation&; in the command prompt window.

How it works...

PowerShell&; is a command line scripting language that has access to the SharePoint object model.

In this example under the web application, occupying Port 80, there are two content databases:

  • Wss_content

  • Wss_content_1

A site collection named mtsite was created under the content database named wss_content. The URL is (shown in the preceding figure): http://2008server/sites/mtsite.

The site collection was moved via PowerShell to the wss_content_1 database. Afterwards, an IISRESET was done, which is necessary to implement the change.

There's more...

One of the reasons behind the need to migrate a site collection is its size. The following is a simple PowerShell command to ascertain the size of a site collection:

Get-SPSiteAdministration -Identity <site URL> .DiskUsed
Other -----------------
- SharePoint 2010 : Word Automation Services - Demonstration Scenario (part 4) - Combine Documents Using OpenXML, Converting an OpenXML Document to an Alternative Format
- SharePoint 2010 : Word Automation Services - Demonstration Scenario (part 3) - Combine Documents Using OpenXML, Converting an OpenXML Document to an Alternative Format
- SharePoint 2010 : Word Automation Services - Demonstration Scenario (part 2) - Customizing the DocumentSetProperties Web Part
- SharePoint 2010 : Word Automation Services - Demonstration Scenario (part 1) - Creating a Custom Content Type
- SharePoint 2010 : Word Automation Services - Creating Conversion Jobs, Checking Status of Conversion Jobs
- SharePoint 2010 : The Client Object Model (part 4) - WebPart Communication Without Postbacks
- SharePoint 2010 : The Client Object Model (part 3) - Writing the JavaScript WebPart
- SharePoint 2010 : The Client Object Model (part 2) - Writing the Silverlight WebPart
- SharePoint 2010 : The Client Object Model (part 1) - Infrastructural Objects, Object Identity
- SharePoint 2010 : Making Enterprise Content Management Work - Records Management (part 2) - Configuring Enterprise Document and Records Management
- SharePoint 2010 : Making Enterprise Content Management Work - Records Management (part 1) - Record Declaration, Information Management Policies
- SharePoint 2010 : Making Enterprise Content Management Work - Document Management (part 3) - Document IDs, Managed Metadata
- SharePoint 2010 : Making Enterprise Content Management Work - Document Management (part 2) - Document Sets
- SharePoint 2010 : Making Enterprise Content Management Work - Document Management (part 1) - Item-level Security, Versioning Settings
- SharePoint 2010 : Setting Lockdown Mode for publishing sites, Configuring Site Collection audit settings, Accessing security policy reports
- SharePoint 2010 : Checking effective permission user interface
- SharePoint 2010 : Adding a user via PowerShell, Delegating PowerShell permissions
- SharePoint Server 2010 Business Intelligence Platform (part 6) - Reporting Services
- SharePoint Server 2010 Business Intelligence Platform (part 5) - PowerPivot
- SharePoint Server 2010 Business Intelligence Platform (part 4) - PerformancePoint Services - Time Intelligence, Decomposition Tree
 
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
programming4us programming4us